package com.doupi.partner.service;

import com.doupi.partner.dal.model.AdministratorHasRole;
import com.doupi.partner.util.Pagination;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AdministratorHasRoleService {
	int deleteByPrimaryKey(Long id);

	int insert(AdministratorHasRole record);

	AdministratorHasRole selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AdministratorHasRole record);

	int countAdministratorHasRole(AdministratorHasRole administratorHasRole);

	List<AdministratorHasRole> queryAdministratorHasRoles(AdministratorHasRole administratorHasRole, RowBounds rowBounds);

	List<AdministratorHasRole> selectAdministratorHasRoleForUpdate(AdministratorHasRole administratorHasRole);

	AdministratorHasRole selectAdministratorHasRoleForUpdateByPrimaryKey(Long id);

	Pagination<AdministratorHasRole, AdministratorHasRole> queryAdministratorHasRoles(Pagination<AdministratorHasRole, AdministratorHasRole> pagination);

	int deleteByAdministratorId(Long administratorId);

	int deleteByAdministratorRoleId(Long administratorRoleId);

	List<AdministratorHasRole> queryByAdministratorId(Long administratorId);
}
